package com.gehj.uhttp;



/**
  *
  * @ClassName:      GlobleURL
  * @Description:    公共类
  * @Author:         gehj
  * @CreateDate:     2020/12/10 9:49
 */

public class GlobleURL_GoodDriver_Business {
    public static final String ACCESS_TOKEN = "access_token";
    public static final String BASE_TOKEN = "base_token";
    public static final String USER_ID = "user_id";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "pwd";
    public static final String AUTHSTATUS = "authStatus"; //0,未认证 1,成功  2，认证不通过
    public static final int TO_MAPACTIVITY_REQUESTCODE = 10;
    public static final int MAP_RESULT_OK = 200;
    public static final int MAP_RESULT_CANCEL = -1;
    public static final String ADDRESS = "address";
    public static final String LONGITUDE = "longitude";//经度
    public static final String LATITUDE = "latitude";//纬度
    public static final String BUSINESSNAME = "businessName"; //商业商户自填名称
    public static final String FLAG_SECRET = "flag_secret";//0,注册的 1,忘记密码 2,修改密码
    public static final String PHONE = "phone";//0,注册的 1,忘记密码 2,修改密码
    public static final String IMGURL = "imgUrl";//营业执照的图片地址
    public static final String COORDINATE = "coordinate";//坐标
    public static final String WORKTIME = "workTime";
    public static final String WORKERPHONE = "workerPhone";
    public static final String ISFRIST_LOGIN = "isFrist";

    /*webservice要调用的参数*/
    //public  static  final  String publicUrl = "http://192.168.0.24:8769";//开发接口
    public static final String publicUrl = "http://test.shide56.net:92"; //测试接口
    public static final String publicUrl1 = "http://test.shide56.net:96"; //好司机服务
    public static final String publicUrl_product = "http://good.shide56.net:96"; //生产
    public static final String publicUrl_test = "http://192.168.0.26:96"; //测试
    //public static final String publicUrl_apkUpdate = "http://node021:9999"; //apk更新地址
    public static final String publicUrl_apkUpdate = "http://10.7.0.21:9999"; //apk更新地址
    //登录token请求地址
    public static final String LOGIN_TOKEN_PERFIX = "Basic ";
    //token前缀
    public static final String PREFIX_TOKEN = "Bearer ";
    //Authorization
    public static final String Authorization = "Authorization";

    //登录
    public static final String login = publicUrl + "/auth/mobile/password/login";
    public static final String LOIGNTOKEN = "Z29vZC1kcml2ZXItYnVzaW5lc3M6MTIzNDU2";//基础的登录token

    //发送手机验证码 - 注册
    public static final String SendAuthicCode = publicUrl + "/admin/v3.7/business/user/send/code?cellPhoneNumber=";
    //发送手机验证码 - 重置密码
    public static final String SendAuthicCode_reset = publicUrl + "/admin/v3.7/business/reset/send/code?cellPhoneNumber=";
    //验证手机验证码
    public static final String VerifyAuthicCode = publicUrl + "/admin/v3.7/business/user/code/check";
    //注册
    public static final String Regist = publicUrl + "/admin/v3.7/business/user/register";
    //重置密码
    public static final String resetPwd = publicUrl + "/admin/v3.7/business/user/reset/pwd";


    public static final String refreshTokenUrl = publicUrl + "/v1.0/refresh/token";
    //好司机协议
    public static final String ServiceProtocol = publicUrl1 + "/driver-h5/#/userAgreement";
    //认证接口 /admin/v3.7/business/user/auth/commit
    public static final String BusinessAuthentication = publicUrl + "/admin/v3.7/business/user/auth/commit";

    //查询认证状态 需要登录后bear token，重新二次请求认证状态
    //http://test.shide56.net:92/admin/v3.7/business/user/detail/get
    public static final String CheckUserStatus = publicUrl + "/admin/v3.7/business/user/detail/get";

    //修改认证信息
    public static final String CorrectAuthInfo = publicUrl + "/admin/v4.3/business/user/auth/update";

    //客户管理列表
    public static final String ClientManagerList = publicUrl + "/admin/v3.7/business/user/custom/list";

    //商品分类 token -get
    public static final String GoodsTypes = publicUrl + "/order/v4.3/exchange/product/type/all";
    //兑换记录的商品列表
    public static final String GoodsTypes_exchanged = publicUrl + "/order/v4.3/exchange/business/product/type/list";

    //添加商品接口
    public static final String AddGoods = publicUrl + "/order/v3.7/exchange/product/add";

    public static String getImgUrl(String imgName) {
        return publicUrl + "/FILE-SERVICE/" + imgName;
    }

    //获取公用的图片地址
    //1301727287192846337/PzvwCf.jpg
    public static String getOrderImgUrl(String imageName) {
        return publicUrl1 + "/images/productImg/" + imageName;
    }






    /*商品类*/
    //商品列表
    //商品列表 post请求
    /**
     * 参数
     * businessId:1301727287192846337
     * limit :10
     * page :0
     */
    public static final String Goodslist = publicUrl + "/order/v3.7/exchange/product/list";
    /**返回结果
     *
     * {
     *     "condition": {
     *         "businessId": "1301727287192846337",
     *         "limit ": "10",
     *         "page ": "0"
     *     },
     *     "current": 1,
     *     "pages": 1,
     *     "records": [
     *         {
     *             "businessId": "1301727287192846337",
     *             "code": "",
     *             "createTime": "2020.10.29 22:35:02",
     *             "description": "wwe",
     *             "exchangeAmount": 11.00,
     *             "exchangeTypeId": "4",
     *             "id": "1321822857177714690",
     *             "msg": "",
     *             "productImg": "1301727287192846337/w7sZrg.jpg",
     *             "productUnit": "积分/条",
     *             "shelf": 1,
     *             "typeName": "轮胎"
     *         },
     *         {
     *             "businessId": "1301727287192846337",
     *             "code": "",
     *             "createTime": "2020.10.29 22:36:57",
     *             "description": "测试",
     *             "exchangeAmount": 12.69,
     *             "exchangeTypeId": "5",
     *             "id": "1321823341389139970",
     *             "msg": "",
     *             "productImg": "1301727287192846337/PzvwCf.jpg",
     *             "productUnit": "积分/桶",
     *             "shelf": 1,
     *             "typeName": "润滑油"
     *         }
     *     ],
     *     "searchCount": true,
     *     "size": 10,
     *     "total": 2
     * }
     *
     *
     */

    //商品上下架 上架 post请求
    /**
     * Name	Description
     * id *
     * string
     * (query)
     * 商品详情ID
     * <p>
     * shelf *
     * ref
     * (query)
     * 下架:2,上架:1
     */
    public static final String UpOrDownShelf = publicUrl + "/order/v4.3/exchange/product/shelf";
    /**
     * 返回
     * {
     *   "code": "string",
     *   "msg": "string"
     * }
     *
     * */


    //删除商品 delete请求
    /**
     * id *
     * string
     * (query)
     * 商品详情ID
     */
    public static final String DeletGoods = publicUrl + "/order/v3.7/exchange/product/delete";
    /**
     * 返回
     * {
     *   "code": "string",
     *   "msg": "string"
     * }
     *
     */

    //修改商品 post请求
    /**
     * description
     * string
     * (query)
     * 商品描述
     * <p>
     * exchangeAmount
     * string
     * (query)
     * 金额（单价）
     * <p>
     * exchangeTypeId
     * string
     * (query)
     * 商品类型ID
     * <p>
     * files
     * ref
     * (query)
     * 商品头图
     * <p>
     * id
     * string
     * (query)
     * 商品详情ID
     */
    public static final String UpdateGoods = publicUrl + "/order/v3.7/exchange/product/update";
    /** 返回
     * {
     *   "code": "string",
     *   "msg": "string"
     * }
     */

    //商品详情 get请求
    /**
     * id *
     * string
     * (query)
     * 商品详情ID
     */
    public static final String GoodsDetail = publicUrl + "/order/v4.3/exchange/business/product/info";
    /**
     * 返回
     * {
     *   "businessId": "string",
     *   "code": "string",
     *   "createTime": "2020-10-30T08:06:38.952Z",
     *   "description": "string",
     *   "exchangeAmount": 0,
     *   "exchangeTypeId": "string",
     *   "id": "string",
     *   "msg": "string",
     *   "productImg": "string",
     *   "productUnit": "string",
     *   "shelf": 0,
     *   "typeName": "string"
     * }
     *
     *
     * */









    /*扫码类*/
    //扫码接口 get请求
    /**
     * businessId *
     * string
     * (query)
     * 商户端登录人ID
     * <p>
     * mallOrderId *
     * string
     * (query)
     * 司机商城订单ID
     * <p>
     * uniqueMd5 *
     * string
     * (query)
     * 兑换扫码确认表ID
     */
    public static final String ScanDriver = publicUrl + "/order/v4.3/exchange/scan/driver";
    /**
     * 返回值
     * {
     *   "amount": "string",
     *   "brokerId": "string",
     *   "brokerName": "string",
     *   "businessId": "string",
     *   "businessName": "string",
     *   "businessUsername": "string",
     *   "code": "string",
     *   "coordinate": "string",
     *   "createTime": "string",
     *   "currentTime": "string",
     *   "description": "string",
     *   "driverId": "string",
     *   "driverRealname": "string",
     *   "driverUsername": "string",
     *   "exchangeId": "string",
     *   "exchangeProductUnit": "string",
     *   "exchangeTime": "string",
     *   "exchangeTypeName": "string",
     *   "invalidTime": "string",
     *   "mallOrderId": "string",
     *   "msg": "string",
     *   "num": "string",
     *   "orderNumber": "string",
     *   "price": "string",
     *   "state": "string",
     *   "uniqueMd5": "string",
     *   "vehicleId": "string",
     *   "vehicleNumber": "string"
     * }
     *
     *
     *
     * */


    //扫码确认地址 get请求
    /**
     * businessId *
     * string
     * (query)
     * 商户端登录人ID
     * <p>
     * mallOrderId *
     * string
     * (query)
     * 司机商城订单ID
     * <p>
     * uniqueMd5 *
     * string
     * (query)
     * 兑换扫码确认表ID
     */
    public static final String ScanConfirm = publicUrl + "/order/v4.3/exchange/scan/confirm";
    /**
     * 返回值
     * {
     *   "code": "string",
     *   "msg": "string"
     * }
     *
     * */


    //等待轮询接口 --> 出最后的确认单 get
    /**
     * mallOrderId *
     * string
     * (query)
     * 司机商城订单ID
     * <p>
     * uniqueMd5 *
     * string
     * (query)
     * 兑换扫码确认表ID
     */
    public static final String ScanWait = publicUrl + "/order/v4.3/exchange/scan";
    /**
     * 返回结果
     * {
     * "amount": "string",
     * "businessName": "string",
     * "code": "string",
     * "driverRealname": "string",
     * "driverUsername": "string",
     * "exchangeProductUnit": "string",
     * "exchangeRecordInfoId": "string",
     * "exchangeTime": "string",
     * "exchangeTypeName": "string",
     * "msg": "string",
     * "num": "string",
     * "orderNumber": "string",
     * "price": "string",
     * "state": "string",
     * "uniqueMd5": "string",
     * "vehicleNumber": "string"
     * }
     */





    /*兑换记录*/

    //关联客户下拉列表 get请求
    /**
     * businessId *
     * string
     * (query)
     * 商户ID
     */
    public static final String EnterpriseList = publicUrl
            + "/order/v3.7/exchange/business/enterprise/name/list";
    /**
     * 返回结果
     *
     * [
     *   {
     *     "brokerId": "string",
     *     "integral": "string",
     *     "isUsable": "string",
     *     "orgName": "string"
     *   }
     * ]
     */


    //商品类型列表见  Goodslist 接口


    //商户兑换记录列表 get
    /**
     * brokerId
     * string
     * (query)
     * 企业ID
     *
     * businessId *
     * string
     * (query)
     * 商户ID
     *
     * createTimeBegin
     * string
     * (query)
     * 兑换开始时间(yyyy-MM-dd HH:mm:ss)
     *
     * createTimeEnd
     * string
     * (query)
     * 兑换结束时间(yyyy-MM-dd HH:mm:ss)
     *
     * limit *
     * integer($int32)
     * (query)
     * 每页显示信息条数
     *
     * page *
     * integer($int32)
     * (query)
     * 页码
     *
     * productTypeId
     * string
     * (query)
     * 商品类型ID
     *
     *
      */
    public static final String RecordList = publicUrl + "/order/v3.7/exchange/business/record/list";
    /**
     * {
     *   "condition": {},
     *   "current": 0,
     *   "pages": 0,
     *   "records": [
     *     {
     *       "exchangeAmount": 0,
     *       "exchangeRecordInfoList": [
     *         {
     *           "amountType": 0,
     *           "brokerId": "string",
     *           "businessId": "string",
     *           "businessName": "string",
     *           "code": "string",
     *           "createTime": "2020-10-30T08:24:22.377Z",
     *           "driverId": "string",
     *           "exchangeAmount": 0,
     *           "exchangeId": "string",
     *           "exchangeNumber": "string",
     *           "exchangeTypeName": "string",
     *           "id": "string",
     *           "msg": "string",
     *           "optUserId": "string",
     *           "orderId": "string",
     *           "orderNumber": "string",
     *           "orgName": "string",
     *           "productType": 0,
     *           "realname": "string",
     *           "username": "string"
     *         }
     *       ],
     *       "incomeAmount": 0,
     *       "yearMonth": "string"
     *     }
     *   ],
     *   "searchCount": true,
     *   "size": 0, //当前页条数
     *   "total": 0 //总条数
     * }
     *
     *
     *
     *
     */

    //新兑换记录详情 get请求
    /**
     * id *
     * string
     * (query)
     * 兑换记录ID
     */
    public static final String  RecordDetail = publicUrl + "/order/v4.3/exchange/record/detail/new";
    /**返回
     *{
     *   "amount": "string",
     *   "amountType": "string",
     *   "brokerName": "string",
     *   "businessName": "string",
     *   "code": "string",
     *   "createTime": "string",
     *   "driverRealname": "string",
     *   "driverUsername": "string",
     *   "exchangeNumber": "string",
     *   "exchangeProductUnit": "string",
     *   "exchangeTime": "string",
     *   "exchangeTypeName": "string",
     *   "msg": "string",
     *   "num": "string",
     *   "orderNumber": "string",
     *   "price": "string",
     *   "vehicleNumber": "string",
     *   "waybillNumber": "string"
     * }
     *
     *
     *
     */


    //兑换记录导出 get
    /**
     * brokerId
     * string
     * (query)
     * 企业ID
     *
     * businessId *
     * string
     * (query)
     * 商户ID
     *
     * createTimeBegin
     * string
     * (query)
     * 兑换开始时间(yyyy-MM-dd HH:mm:ss)
     *
     * createTimeEnd
     * string
     * (query)
     * 兑换结束时间(yyyy-MM-dd HH:mm:ss)
     *
     * productTypeId
     * string
     * (query)
     * 商品类型ID
     * */
    public static final String RecordExport = publicUrl +"/order/v4.3/exchange/business/record/export";
    /**
     * 没有返回 200
    *
    * */


    //更新包
    public static final String ApkUpdate = publicUrl_apkUpdate + "/publish/publishinfo/getUpdateMode";
    //public static final String ApkUpdate = "http://node021:9999/publish/publishinfo/getUpdateMode";
    public static final String WorkAndTime = publicUrl + "/order/v2.3/service/telephone";


     /*public static final String register = publicUrl+"register";
     public static final String scan = publicUrl+"scan ";
    public static  final  String upload = publicUrl+"upload";

    public  static  final  String test_login = "https://mockapi.eolinker.com/Vw4Pz6ib2c6ac93793e296a2d8acbb4e6ed0b424abea5ae/sm/login";
    public  static  final  String test_qcheck = "https://mockapi.eolinker.com/Vw4Pz6ib2c6ac93793e296a2d8acbb4e6ed0b424abea5ae/sm/qcodecheck";
    public  static  final  String test_mapTrack = "https://mockapi.eolinker.com/Vw4Pz6ib2c6ac93793e296a2d8acbb4e6ed0b424abea5ae/sm/map/cartrack";
    public static  final  String car_treace = "http://221.204.249.95:27025/service.asmx?op=Services";
*/
}
